const lodash = require('lodash');
const router = {

    init(tablename) {
        let camelCaseTableName = lodash.camelCase(tablename);
        let camelCaseTableNameFirst = lodash.upperFirst(camelCaseTableName);
        let ret = `router.post('/${tablename}/querylist', controller.system.${camelCaseTableName}.querylist);
router.post('/${tablename}/add', controller.system.${camelCaseTableName}.add);
router.post('/${tablename}/delete', controller.system.${camelCaseTableName}.delete);
router.post('/${tablename}/querybyid', controller.system.${camelCaseTableName}.querybyid);
router.post('/${tablename}/edit', controller.system.${camelCaseTableName}.edit);
`;
        return ret;
    }

}

module.exports = router;